package com.cloudbroker.bcs.platform.dav.bizapi.service.viewpoint.vo;

import com.cloudbroker.bcs.common.validatioin.annotation.EnumValue;
import com.cloudbroker.bcs.common.validatioin.annotation.IntegerString;
import com.cloudbroker.bcs.common.validatioin.annotation.JsonValue;
import com.cloudbroker.bcs.common.validatioin.annotation.Length;
import com.cloudbroker.bcs.common.validatioin.annotation.NotBlank;
import com.cloudbroker.bcs.common.validatioin.annotation.Range;
import com.cloudbroker.bcs.common.validatioin.annotation.RichText;
import com.cloudbroker.bcs.platform.dav.bizapi.constants.type.ViewpointPublicType;
import com.cloudbroker.bcs.platform.dav.bizapi.service.base.vo.HSBCPSVO;

public class ViewpointSaveForm extends HSBCPSVO {
    
    private static final long serialVersionUID = 2224893683670740384L;
    
    @NotBlank
    @Length(max = 8000)
    @RichText
    @JsonValue
    protected String viewpoint_content;
    
    @NotBlank
    @IntegerString
    @Length(max = 20)
    protected String viewpoint_tag_id;
    
    @NotBlank
    @EnumValue(enums = { "0", "1" })
    protected String viewpoint_status;
    
    @IntegerString
    @Length(max = 20)
    protected String viewpoint_id;
    
    @NotBlank
    @IntegerString
    @Range(min = 0, max = 10000)
    protected String price;
    
    protected String viewpoint_abstract;
    
    @NotBlank
    @Length(max = 6000)
    @JsonValue
    protected String viewpoint_img_audio;
    
    @EnumValue(enumClass = ViewpointPublicType.class)
    protected String viewpoint_public_flag;
    
    protected String create_time;
    
    public String getViewpoint_abstract() {
        return viewpoint_abstract;
    }
    
    public void setViewpoint_abstract(String viewpoint_abstract) {
        this.viewpoint_abstract = viewpoint_abstract;
    }
    
    public String getViewpoint_img_audio() {
        return viewpoint_img_audio;
    }
    
    public void setViewpoint_img_audio(String viewpoint_img_audio) {
        this.viewpoint_img_audio = viewpoint_img_audio;
    }
    
    public String getPrice() {
        return price;
    }
    
    public void setPrice(String price) {
        this.price = price;
    }
    
    public String getViewpoint_content() {
        return viewpoint_content;
    }
    
    public void setViewpoint_content(String viewpoint_content) {
        this.viewpoint_content = viewpoint_content;
    }
    
    public String getViewpoint_tag_id() {
        return viewpoint_tag_id;
    }
    
    public void setViewpoint_tag_id(String viewpoint_tag_id) {
        this.viewpoint_tag_id = viewpoint_tag_id;
    }
    
    public String getViewpoint_status() {
        return viewpoint_status;
    }
    
    public void setViewpoint_status(String viewpoint_status) {
        this.viewpoint_status = viewpoint_status;
    }
    
    public String getViewpoint_id() {
        return viewpoint_id;
    }
    
    public void setViewpoint_id(String viewpoint_id) {
        this.viewpoint_id = viewpoint_id;
    }
    
    public String getViewpoint_public_flag() {
        return viewpoint_public_flag;
    }
    
    public void setViewpoint_public_flag(String viewpoint_public_flag) {
        this.viewpoint_public_flag = viewpoint_public_flag;
    }
    
    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("ViewpointSaveForm [viewpoint_content=").append(viewpoint_content)
                .append(", viewpoint_tag_id=").append(viewpoint_tag_id).append(", viewpoint_status=")
                .append(viewpoint_status).append(", viewpoint_id=").append(viewpoint_id).append(", price=")
                .append(price).append(", viewpoint_abstract=").append(viewpoint_abstract)
                .append(", viewpoint_img_audio=").append(viewpoint_img_audio).append(", viewpoint_public_flag=")
                .append(viewpoint_public_flag).append(", create_time=").append(create_time).append(", user_token=")
                .append(user_token).append(", tenant_id=").append(tenant_id).append("]");
        return builder.toString();
    }

}
